﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TGBTech.Core.Models.DanhMuc;

namespace TGBTech.Core.Models.Models.ChungTu
{
    [Table("ChungTuNhap")]
    public class ChungTuNhap
    {
        public int Id { get; set; }
        [Required]
        public String SoCT { get; set; }
        [Required]
        public DateTime NgayCT { get; set; }
        [Required]
        public String TaiKhoanNoId { get; set; }
       
        public virtual TaiKhoan TaiKhoanNo { get; set; }
        [Required]
        public String TaiKhoanCoId { get; set; }
        public virtual TaiKhoan TaiKhoanCo { get; set; }
        [Required]
        public String KhachHangId { get; set; }
        public virtual KhachHang Khachhang { get; set; }
        public String LyDo { get; set; }
        [Required]
        public String SoHieu { get; set; }
        [Required]
        public String SoHoaDon { get; set; }
        [Required]
        public DateTime NgayHoaDon { get; set; }

        public virtual ICollection<CTChungTuNhap> List { get; set; }
    }
}
